package com.todo.delicacy.iface.backend;

import com.todo.common.common.entity.response.BizPageResponse;
import com.todo.common.common.entity.response.BizResponse;
import com.todo.delicacy.iface.backend.request.*;
import com.todo.delicacy.iface.backend.response.QueryRestaurantInfoByConditionResp;
import com.todo.delicacy.iface.backend.response.RestaurantDetailInfoResp;

/**
 * @author zhangwenxiang
 * @date 2024/3/5 19:47
 * @description
 */
public interface RestaurantInfoBackendIface {

    /**
     * 新增餐馆信息
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> insertRestaurantInfo(InsertRestaurantInfoReq req);

    /**
     * 根据id更新餐馆信息
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> updateRestaurantInfoById(UpdateRestaurantInfoReq req);

    /**
     * 启禁用餐馆信息
     *
     * @param req
     * @return
     */
    BizResponse<Boolean> enableRestaurantInfo(EnableRestaurantInfoReq req);

    /**
     * 多条件查询餐馆信息
     *
     * @param req
     * @return
     */
    BizPageResponse<QueryRestaurantInfoByConditionResp> queryRestaurantInfoByCondition(QueryRestaurantInfoByConditionReq req);

    /**
     * 根据id查询餐馆信息
     *
     * @param req
     * @return
     */
    BizResponse<RestaurantDetailInfoResp> queryRestaurantInfoById(QueryRestaurantInfoByIdReq req);
}
